package com.yumeng.webapp.controller;

import com.yumeng.common.api.ApiResult;
import com.yumeng.webapp.auth.AuthHelper;
import com.yumeng.webapp.auth.CurrAuthInfo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wxd
 * @date 2025/2/25 21:30
 */
@Slf4j
@RestController
@RequestMapping("/test")
public class TestController {


    @GetMapping("/doSomething.do")
    public ApiResult doSomething() {
        CurrAuthInfo authInfo = AuthHelper.getCurrAuthInfo();
        return ApiResult.successData(authInfo);
    }
}
